{#include file="admin_header.htm"#}
<div class="admin_main_nr_dbox">
  <form id="form1" name="form1" method="post" action="?act=members_add_save">
  <table width="700" border="0" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF"  >
    <tr>
      <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">用戶名：</td>
      <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"> <input name="username" type="text" class="article_text_f" id="username" maxlength="25" value=""/> </td>
    </tr>
    <tr>
      <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">郵箱地址：</td>
      <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed" ><input name="email" type="text" class="article_text_f" id="email" maxlength="25" value=""/></td>
    </tr>
    <tr>
      <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">登陸密碼：</td>
      <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed" ><input name="password" type="password" class="article_text_f" id="password" maxlength="25" value=""/></td>
    </tr>
	
    <tr>
      <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">再次輸入密碼：</td>
      <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed" ><input name="password1" type="password" class="article_text_f" id="password1" maxlength="25" value=""/></td>
    </tr>
	    <tr style="display:none;">
      <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">是否贈送積分：</td>
      <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed" ><label>
        <input name="regpoints" type="radio" value="y" checked="checked" onclick="show_num();"/>
        贈送</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label>
        <input type="radio" name="regpoints" value="n"   onclick="show_num();"/>
        不贈送</label></td>
	    </tr>
		
		<tr style="display:none;">
      <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">贈送數量：</td>
      <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed" ><input name="regpoints_num" type="text" class="article_text_f" id="regpoints_num" maxlength="25" value="{#$QISHI.reg_points#}" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/></td>
    </tr>
    <tr>
      <td height="30" align="right" bgcolor="#FFFFFF" >&nbsp;</td>
      <td height="80" bgcolor="#FFFFFF" ><span style="font-size:14px;">
        <br /><input type="hidden" name="member_type"  value="1" />
        <input name="submit3" type="submit" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="添加"/>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <input name="submit22" type="button" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="返 回" onclick="Javascript:window.history.go(-1)"/>
      </span></td>
    </tr>
  </table>
  </form>
</div>
<script>
//獲取單選的值
function radios_val(val)
    {
        var radios=document.getElementsByName(val);
        for(var i=0;i<radios.length;i++)
        {
            if(radios[i].checked==true)
            {
			return radios[i].value;
            break;
            }
        }
    }
show_num();
function show_num()
{
var regpoints_val=radios_val("regpoints");
if (regpoints_val=="n")
{
 document.getElementById("show").style.display="none";   
}
else
{
document.getElementById("show").style.display="";   
}
}
function $(s) {
    return document.getElementById(s);
}
function $$(s) {
    return document.getElementsByName(s);
}
</script>
{#include file="admin_footer.htm"#}
</body>
</html>
